#coding: utf-8
from django.db import models
class RepositoryMenu(models.Model):
    pid = models.IntegerField()
    text = models.CharField(max_length=200)
    remark = models.CharField(max_length=200,blank=True)
    url = models.CharField(max_length=200,blank=True)
    state = models.CharField(max_length=200,blank=True)
    iconCls =  models.CharField(max_length=200,blank=True)
class RepositoryInfo(models.Model):
    repositorymenu_id = models.ForeignKey(RepositoryMenu, help_text='菜单')
    title = models.CharField(max_length=200,unique=True)
    content = models.TextField()
    create_time= models.DateTimeField(auto_now_add=True)
    operator = models.CharField(max_length=200)
# Create your models here.
